<?php 
 require_once '../../Controller/Controller.CadastroUsuario.php';     
?>
<html>
<head>
<link type="text\css" href="estilo/estilo.css" rel="stylesheet"/>
<script type="text/javascript" src="javascript/ejeitos.js"></script>
</head>
<body onload="campocursor()">
<div id="tudo">
	<div id="cabecalho">
		<div id="menu_superior">
			<a href="quemsomos.php" >Quem Somos |</a>
			<a href="usuario-loja.php" >Lojas |</a>
			<a href="usuario-contato.php" >Contato</a>		
		</div>
		<a href="index.php"><img src="imagens/menu/logo.jpg" alt="Ham Ya" /></a>
		<div id="menu">
			<a href="usuario-cadastro.php" ><div class="bt_menu">
				<img src="imagens/menu/cadastro.jpg" alt="cadastro" />Cadastro			
			</div></a>
			<a href="usuario-pedidos.php" ><div class="bt_menu">
				<img src="imagens/menu/pedido.jpg" alt="pedidos" />Pedidos			
			</div></a>
			<a href="usuario-cesta.php" ><div class="bt_menu">
				<img src="imagens/menu/cesta.jpg" alt="cesta" />Cesta			
			</div></a>			
		</div>
		<div id="busca">
                    <form action="" method="">
				Buscar em 
				<select name="buscaTipo" onfocus="fundotextfiel(this,1)" onblur="fundotextfiel(this,0)">
					<option value="o"></option>
					<option value="autor">Autor</option>
					<option value="titulo">Titulo</option>
					<option value="">Editora</option>			
				</select>
				<input type="text" name="buscador" class="cx_buscar" onfocus="fundotextfiel(this,1)" onblur="fundotextfiel(this,0)"/>
                                <input type="submit" value="Buscar" class="bt_buscar"/>		
			</form>	
		</div>
	</div>
	
	<div id="miolo">		
            <form name="cad_usuario" action="<?php $PHP_SELF;?>" method="POST">
			<div class="containers">
				<p class="titulo-cadastro">Dados Pessoais</p>
				<table summary="" >
					<tr>
						<td><strong>Nome Completo:*</strong></td>
                                                <td><input type="text" name="nome" value="<?php echo $nome; ?>" onfocus="fundotextfiel(this,1)" onblur="fundotextfiel(this,0)"/>                                               
                                                <?php if (isset($erro['nome'])) echo $erro['nome']; ?>
                                                </td>					                                                
                                        </tr>
					<tr>
						<td><strong>CPF:*</strong></td>					
                                                <td><input type="text" name="cpf" value="<?php echo $cpf; ?>" onfocus="fundotextfiel(this,1)" onblur="fundotextfiel(this,0)"/>
                                                <?php if (isset($erro['cpf'])) echo $erro['cpf']; ?>
                                                </td>					
					</tr>
					<tr>
                                            <td><strong>RG:*</strong></td>					
                                            <td><input type="text" name="rg" value="<?php echo $rg; ?>" onfocus="fundotextfiel(this,1)" onblur="fundotextfiel(this,0)"/>
                                            <?php if (isset($erro['rg'])) echo $erro['rg']; ?>
                                            </td>					
					</tr>
					<tr>
                                            <td><strong>Data nascimento:*</strong></td>					
                                            <td><input type="text" name="data_nascimento" value="<?php echo $data_nascimento; ?>" onfocus="fundotextfiel(this,1)" onblur="fundotextfiel(this,0)" onkeypress="mascara(this,'####-##')"/>
                                            <?php if (isset($erro['data_nascimento'])) echo $erro['data_nascimento']; ?>
                                            </td>					
					</tr>
					<tr>
						<td><strong>Telefone:*</strong></td>					
                                                <td><input type="text" name="telefone" value="<?php echo $telefone; ?>" onfocus="fundotextfiel(this,1)" onblur="fundotextfiel(this,0)"/>
                                                <?php if (isset($erro['telefone'])) echo $erro['telefone']; ?>
                                                </td>					
					</tr>
					<tr>
                                            <td><strong>Celular:</strong></td>					
                                            <td><input type="text" name="celular" value="<?php echo $celular; ?>" onfocus="fundotextfiel(this,1)" onblur="fundotextfiel(this,0)"/>
                                            <?php if (isset($erro['celular'])) echo $erro['celular']; ?>
                                            </td>					
					</tr>
					<tr>
						<td><strong>E-mail:*</strong></td>					
                                                <td><input type="text" name="email"  value="<?php echo $email; ?>" onfocus="fundotextfiel(this,1)" onblur="fundotextfiel(this,0)"/>
                                                <?php if (isset($erro['email'])) echo $erro['email']; ?>
                                                </td>					
					</tr>
					<tr>
						<td><strong>Login:*</strong></td>					
                                                <td><input type="text" name="login" value="<?php echo $login; ?>" onfocus="fundotextfiel(this,1)" onblur="fundotextfiel(this,0)"/>
                                                <?php if (isset($erro['login'])) echo $erro['login']; ?>
                                                </td>					
					</tr>
					<tr>
						<td><strong>Senha:*</strong></td>					
                                                <td><input type="password" name="senha" value="" onfocus="fundotextfiel(this,1)" onblur="fundotextfiel(this,0)"/>
                                                <?php if (isset($erro['senha'])) echo $erro['senha']; ?>
                                                </td>					
					</tr>
					<tr>
						<td><strong>Repetir senha:*</strong></td>					
                                                <td><input type="password" name="confirma_senha" value="" onfocus="fundotextfiel(this,1)" onblur="fundotextfiel(this,0)"/>
                                                <?php if (isset($erro['confirma_senha'])) echo $erro['confirma_senha']; ?>
                                                </td>					
					</tr>
				</table>				
			</div>	
			<div class="containers">
				<p class="titulo-cadastro">Dados do endere&ccedil;o</p>
				<table summary="" >
					<tr>
						<td><strong>Endere&ccedil;o:*</strong></td>
                                                <td><input type="text" name="endereco" value="<?php echo $endereco; ?>" onfocus="fundotextfiel(this,1)" onblur="fundotextfiel(this,0)"/>
                                                <?php if (isset($erro['endereco'])) echo $erro['endereco']; ?>
                                                </td>					
					</tr>
					<tr>
						<td><strong>Numero:*</strong></td>
                                                <td><input type="text" name="numero" value="<?php echo $numero; ?>" onfocus="fundotextfiel(this,1)" onblur="fundotextfiel(this,0)"/>
                                                <?php if (isset($erro['numero'])) echo $erro['numero']; ?>
                                                </td>					
					</tr>
					<tr>
                                            <td><strong>Complemento:</strong></td>
                                            <td><input type="text" name="complemento" value="<?php echo $complemento; ?>" onfocus="fundotextfiel(this,1)" onblur="fundotextfiel(this,0)"/></td>					
					</tr>
					<tr>
						<td><strong>CEP:*</strong></td>
                                                <td><input type="text" name="cep" value="<?php echo $cep; ?>" onfocus="fundotextfiel(this,1)" onblur="fundotextfiel(this,0)"/>
                                                <?php if (isset($erro['cep'])) echo $erro['cep']; ?>
                                                </td>					
					</tr>
					<tr>
						<td><strong>Bairro:*</strong></td>
                                                <td><input type="text" name="bairro" value="<?php echo $bairro; ?>" onfocus="fundotextfiel(this,1)" onblur="fundotextfiel(this,0)"/>
                                                <?php if (isset($erro['bairro'])) echo $erro['bairro']; ?>
                                                </td>					
					</tr>
					<tr>
						<td><strong>Cidade:*</strong></td>
                                                <td><input type="text" name="cidade" value="<?php echo $cidade; ?>" onfocus="fundotextfiel(this,1)" onblur="fundotextfiel(this,0)"/>
                                                <?php if (isset($erro['cidade'])) echo $erro['cidade']; ?>
                                                </td>					
					</tr>
					<tr>
						<td><strong>UF:*</strong></td>
                                                <td>
                                                    <select name="uf" onfocus="fundotextfiel(this,1)" onblur="fundotextfiel(this,0)">
                                                        <option value=""></option>
                                                        <option value="AC"<?php if ($uf == 'AC') echo 'selected="selected"'; ?>>AC</option>
                                                        <option value="AL"<?php if ($uf == 'AL') echo 'selected="selected"'; ?>>AL</option>
                                                        <option value="AP"<?php if ($uf == 'AP') echo 'selected="selected"'; ?>>AP</option>
                                                        <option value="AM"<?php if ($uf == 'AM') echo 'selected="selected"'; ?>>AM</option>
                                                        <option value="BA"<?php if ($uf == 'BA') echo 'selected="selected"'; ?>>BA</option>
                                                        <option value="CE"<?php if ($uf == 'CE') echo 'selected="selected"'; ?>>CE</option>
                                                        <option value="DF"<?php if ($uf == 'DF') echo 'selected="selected"'; ?>>DF</option>
                                                        <option value="ES"<?php if ($uf == 'ES') echo 'selected="selected"'; ?>>ES</option>
                                                        <option value="GO"<?php if ($uf == 'GO') echo 'selected="selected"'; ?>>GO</option>
                                                        <option value="MA"<?php if ($uf == 'MA') echo 'selected="selected"'; ?>>MA</option>
                                                        <option value="MT"<?php if ($uf == 'MT') echo 'selected="selected"'; ?>>MT</option>
                                                        <option value="MS"<?php if ($uf == 'MS') echo 'selected="selected"'; ?>>MS</option>
                                                        <option value="MG"<?php if ($uf == 'MG') echo 'selected="selected"'; ?>>MG</option>
                                                        <option value="PA"<?php if ($uf == 'PA') echo 'selected="selected"'; ?>>PA</option>
                                                        <option value="PB"<?php if ($uf == 'PB') echo 'selected="selected"'; ?>>PB</option>
                                                        <option value="PR"<?php if ($uf == 'PR') echo 'selected="selected"'; ?>>PR</option>
                                                        <option value="PE"<?php if ($uf == 'PE') echo 'selected="selected"'; ?>>PE</option>
                                                        <option value="PI"<?php if ($uf == 'PI') echo 'selected="selected"'; ?>>PI</option>
                                                        <option value="RJ"<?php if ($uf == 'RJ') echo 'selected="selected"'; ?>>RJ</option>
                                                        <option value="RN"<?php if ($uf == 'RN') echo 'selected="selected"'; ?>>RN</option>
                                                        <option value="RS"<?php if ($uf == 'RS') echo 'selected="selected"'; ?>>RS</option>
                                                        <option value="RO"<?php if ($uf == 'RO') echo 'selected="selected"'; ?>>RO</option>
                                                        <option value="RR"<?php if ($uf == 'RR') echo 'selected="selected"'; ?>>RR</option>
                                                        <option value="SC"<?php if ($uf == 'SC') echo 'selected="selected"'; ?>>SC</option>
                                                        <option value="SP"<?php if ($uf == 'SP') echo 'selected="selected"'; ?>>SP</option>
                                                        <option value="SE"<?php if ($uf == 'SE') echo 'selected="selected"'; ?>>SE</option>
                                                        <option value="TO"<?php if ($uf == 'TO') echo 'selected="selected"'; ?>>TO</option>
                                                    </select>   
                                                    <?php if (isset($erro['uf'])) echo $erro['uf'];?>
                                                </td>					
					</tr>
					<tr>
                                            <td><strong>Referencia:</strong></td>
                                            <td><input type="text" name="referencia" value="<?php echo $referencia; ?>" onfocus="fundotextfiel(this,1)" onblur="fundotextfiel(this,0)"/>
                                            <?php if (isset($erro['referencia'])) echo $erro['referencia'];?>
                                            </td>					
					</tr>					
				</table>
                                <table>
                                    <tr>
                                        <td>
                                            <div align="left"><img src="__captcha.php" width="140" height="40" alt="captcha"/></div>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <div align="left"><strong>Digite o c&oacute;digo.:<font color="BE1E2D"><b>*</b></font></strong>
                                                <input type="text" name="captcha" onfocus="fundotextfiel(this,1)" onblur="fundotextfiel(this,0)"/>
                                                <?php if (isset($erro['captcha'])) echo $erro['captcha']; ?>
                                            </div>
                                        </td>
                                    </tr>                                    
                                </table>
			</div>
                    <div align="center">
                    <input type="submit" value="Cadastrar" class="bt_buscar"/>
                    <input type="reset" value="Voltar" class="bt_buscar"/>
                    </div>
		</form>		
	</div>
	<div id="rodape">
		<div id="busca">
			<form>
				Buscar em 
				<select name="buscaTipo" onfocus="fundotextfiel(this,1)" onblur="fundotextfiel(this,0)">
					<option value="o"></option>
					<option value="autor">Autor</option>
					<option value="titulo">Titulo</option>
					<option value="">Editora</option>			
				</select>
				<input type="text" name="buscador" class="cx_buscar" onfocus="fundotextfiel(this,1)" onblur="fundotextfiel(this,0)"/>
                                <input type="submit" value="Buscar" class="bt_buscar"/>		
			</form>	
		</div>
		
	</div>
</div>
</body>

</html>